<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <link rel="stylesheet" href="css/commom.css">
    <link rel="stylesheet" href="css/login.css">

</head>
<body>

    <!-- nav 是导航单词的缩写 -->
    <div class="nav">
        <!-- 博客系统的logo -->
        <img src="image/QQ图片20221112113838.jpg" alt="">
        <span class="title">我的博客系统</span>
        <!-- spacer不显示内容, 只是占位 将a标签撑到右侧去 -->
        <div class="spacer"></div>
        <a href="#" target="_blank">主页</a>
        <a href="#" target="_blank">写博客</a>
<!--        <a href="#">注销</a>-->
    </div>

    <!-- 自己想的javascript代码 -->
    <!-- <script>
        let inputs = document.querySelectorAll('input');
        // 默认用户名: 18722864552
        let myUsername = '111';
        // 默认密码: lijiaqiang1024
        let myPassword = '222';
        // let myLogin = document.querySelector('#myLogin');
       
        myLogin.onclick = function() {
            let username = inputs[0].value;
            let password = inputs[1].value;
            // console.log(username);
            // console.log(username == myUsername);
            if(username != myUsername || password != myPassword) {
                alert('用户名或密码错误!');
            } else {
                // 账户密码输入正确就重设a标签的网址.
                document.getElementById('myLogin').href = "blog_list.html";
            }
        }
    </script> -->

    <script>
        alert('用户名或密码错误!请重试!');
        location.assign('login.html');
    </script>
    
</body>
</html>